package com.partsoft.dits.dsm;

import java.util.Date;

import com.partsoft.dits.message.DataAction;

public class RecordChangeHistory {

	private long sid;
	
	private String tbname;
	
	private DataAction tboption;
	
	private String tbdata;
	
	private boolean enabled;
	
	private Date optionTime;
	
	public RecordChangeHistory() {}
	
	public long getSid() {
		return sid;
	}

	public String getKeyData() {
		return tbdata;
	}

	public String getTableName() {
		return tbname;
	}

	public DataAction getOption() {
		return tboption;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public void setSid(long id) {
		sid = id;
	}

	public void setKeyData(String data) {
		tbdata = data == null ? data : data.trim();
	}

	public void setTableName(String name) {
		tbname = name == null ? name : name.trim();
	}

	public void setTableOption(DataAction oname) {
		tboption = oname;
	}

	public Date getOptionTime() {
		return optionTime;
	}

	public void setOptionTime(Date optionTime) {
		this.optionTime = optionTime;
	}
	
}
